package com.wonder.app.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description:TODO(股票管理实体类)
 *
 * @author: Wonder
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_sync_order_detail")
@ApiModel(value="t_sync_order_detail对象", description="订单同步内层表")
public class SyncOrderDetail  extends Model<SyncOrderDetail> {
    private static final long serialVersionUID = 1681912671853114L;

    @TableId(value ="id", type = IdType.AUTO)
    @ApiModelProperty(name = "id" , value = "编号")
    private Long id;

    @TableField(value = "billNo")
    @ApiModelProperty(name = "billNo" , value = "单据编号")
    private String billNo;

    @TableField(value = "orderNo")
    @ApiModelProperty(name = "orderNo" , value = "订单编号")
    private String orderNo;


    @TableField(value = "isSuccess")
    @ApiModelProperty(name = "isSuccess" , value = "是否上传成功")
    private Boolean isSuccess;

    @TableField(value = "message")
    @ApiModelProperty(name = "message" , value = "报错信息")
    private String message;

    @TableField(value = "createTime")
    @ApiModelProperty(name = "createTime" , value = "创建时间")
    private Date createTime;

    @TableField(value = "updateTime")
    @ApiModelProperty(name = "updateTime" , value = "修改时间")
    private Date updateTime;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
